class A(object):
    def func(self):
        print('A')
class B(A):
    def func(self):
        super().func()
        print('B')
class C(A):
    def func(self):
        super().func()
        print('C')


class D(B,C):
    def func(self):
        super().func()#super是按照mro顺序来寻找当前类的下一个类    D B C A
        print('D')
D().func()



class User():
    def __init__(self,name):
        self.name=name

class VIPUser(User):
    def __init__(self,name,level,start_date,end_date):
        # User.__init__(self,name)
        super().__init__(name)
        # super(VIPUser, self).__init__(name)
        self.level=level
        self.start_date=start_date
        self.end_date=end_date

alex=VIPUser('太白',6,'2019-01-01','2020-01-01')
print(alex.__dict__)
print()





